<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: mets::iteration_termination_criteria类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classmets_1_1iteration__termination__criteria.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classmets_1_1iteration__termination__criteria-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">mets::iteration_termination_criteria类 参考<div class="ingroups"><a class="el" href="group__common.html">Common components</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Termination criteria based on the number of iterations.  
 <a href="classmets_1_1iteration__termination__criteria.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="termination-criteria_8hh_source.html">termination-criteria.hh</a>&gt;</code></p>
<div class="dynheader">
类 mets::iteration_termination_criteria 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classmets_1_1iteration__termination__criteria.png" usemap="#mets::iteration_5Ftermination_5Fcriteria_map" alt=""/>
  <map id="mets::iteration_5Ftermination_5Fcriteria_map" name="mets::iteration_5Ftermination_5Fcriteria_map">
<area href="classmets_1_1termination__criteria__chain.html" title="Function object expressing a termination criteria" alt="mets::termination_criteria_chain" shape="rect" coords="0,0,203,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a1e3bdc8f993b0c6a46db54802ec32b1f"><td class="memItemLeft" align="right" valign="top"><a id="a1e3bdc8f993b0c6a46db54802ec32b1f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1iteration__termination__criteria.html#a1e3bdc8f993b0c6a46db54802ec32b1f">iteration_termination_criteria</a> (int max)</td></tr>
<tr class="memdesc:a1e3bdc8f993b0c6a46db54802ec32b1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ctor. Max is the number of iterations to do. <br /></td></tr>
<tr class="separator:a1e3bdc8f993b0c6a46db54802ec32b1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6184032fcb4d552d13b1f2a4f92cbb0"><td class="memItemLeft" align="right" valign="top"><a id="aa6184032fcb4d552d13b1f2a4f92cbb0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>iteration_termination_criteria</b> (<a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> *next, int max)</td></tr>
<tr class="separator:aa6184032fcb4d552d13b1f2a4f92cbb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8117b69778d8a5078566f8da9eb70fdf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1iteration__termination__criteria.html#a8117b69778d8a5078566f8da9eb70fdf">operator()</a> (const <a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;fs)</td></tr>
<tr class="memdesc:a8117b69778d8a5078566f8da9eb70fdf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alternate function that decides if we shoud terminate the search process  <a href="classmets_1_1iteration__termination__criteria.html#a8117b69778d8a5078566f8da9eb70fdf">更多...</a><br /></td></tr>
<tr class="separator:a8117b69778d8a5078566f8da9eb70fdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5527220ab4b7c669f0c1cdec1f8dc0b4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1iteration__termination__criteria.html#a5527220ab4b7c669f0c1cdec1f8dc0b4">reset</a> ()</td></tr>
<tr class="memdesc:a5527220ab4b7c669f0c1cdec1f8dc0b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the criterion to its initial state.  <a href="classmets_1_1iteration__termination__criteria.html#a5527220ab4b7c669f0c1cdec1f8dc0b4">更多...</a><br /></td></tr>
<tr class="separator:a5527220ab4b7c669f0c1cdec1f8dc0b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmets_1_1termination__criteria__chain"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmets_1_1termination__criteria__chain')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classmets_1_1termination__criteria__chain.html">mets::termination_criteria_chain</a></td></tr>
<tr class="memitem:ab8072803ee53f230d9f557e10f9640ea inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1termination__criteria__chain.html#ab8072803ee53f230d9f557e10f9640ea">termination_criteria_chain</a> (<a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> *next=0)</td></tr>
<tr class="memdesc:ab8072803ee53f230d9f557e10f9640ea inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="classmets_1_1termination__criteria__chain.html#ab8072803ee53f230d9f557e10f9640ea">更多...</a><br /></td></tr>
<tr class="separator:ab8072803ee53f230d9f557e10f9640ea inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dd6cdfaace32e64df1944f27cd18da6 inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memItemLeft" align="right" valign="top"><a id="a0dd6cdfaace32e64df1944f27cd18da6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1termination__criteria__chain.html#a0dd6cdfaace32e64df1944f27cd18da6">termination_criteria_chain</a> (const <a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> &amp;)</td></tr>
<tr class="memdesc:a0dd6cdfaace32e64df1944f27cd18da6 inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="mdescLeft">&#160;</td><td class="mdescRight">purposely not implemented (see Effective C++) <br /></td></tr>
<tr class="separator:a0dd6cdfaace32e64df1944f27cd18da6 inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6eb6c6c7d0be43914a0686c5f9740dd4 inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memItemLeft" align="right" valign="top"><a id="a6eb6c6c7d0be43914a0686c5f9740dd4"></a>
<a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> &amp;)</td></tr>
<tr class="separator:a6eb6c6c7d0be43914a0686c5f9740dd4 inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dfb2f9bc6e3ce2e66bed297f86880cb inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memItemLeft" align="right" valign="top"><a id="a0dfb2f9bc6e3ce2e66bed297f86880cb"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1termination__criteria__chain.html#a0dfb2f9bc6e3ce2e66bed297f86880cb">~termination_criteria_chain</a> ()</td></tr>
<tr class="memdesc:a0dfb2f9bc6e3ce2e66bed297f86880cb inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual destructor. <br /></td></tr>
<tr class="separator:a0dfb2f9bc6e3ce2e66bed297f86880cb inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:aa616d1fe17f9b7eba4befeb2d094e996"><td class="memItemLeft" align="right" valign="top"><a id="aa616d1fe17f9b7eba4befeb2d094e996"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>max_m</b></td></tr>
<tr class="separator:aa616d1fe17f9b7eba4befeb2d094e996"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a582c374d42c008a2b752c21412066572"><td class="memItemLeft" align="right" valign="top"><a id="a582c374d42c008a2b752c21412066572"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>iterations_m</b></td></tr>
<tr class="separator:a582c374d42c008a2b752c21412066572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classmets_1_1termination__criteria__chain"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classmets_1_1termination__criteria__chain')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classmets_1_1termination__criteria__chain.html">mets::termination_criteria_chain</a></td></tr>
<tr class="memitem:aaccffc670c01236af30df2c2e05f5e3b inherit pro_attribs_classmets_1_1termination__criteria__chain"><td class="memItemLeft" align="right" valign="top"><a id="aaccffc670c01236af30df2c2e05f5e3b"></a>
<a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>next_m</b></td></tr>
<tr class="separator:aaccffc670c01236af30df2c2e05f5e3b inherit pro_attribs_classmets_1_1termination__criteria__chain"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Termination criteria based on the number of iterations. </p>
<p>This termination criteria terminates the tabu-search after a fixed number of itarations. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a8117b69778d8a5078566f8da9eb70fdf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8117b69778d8a5078566f8da9eb70fdf">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool mets::iteration_termination_criteria::operator() </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;&#160;</td>
          <td class="paramname"><em>fs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Alternate function that decides if we shoud terminate the search process </p>
<p>(chain of responsibility)</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fs</td><td>The current working solution. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>True if we shoud terminate </dd></dl>

<p>重载 <a class="el" href="classmets_1_1termination__criteria__chain.html#ab9eb6f84a9ce3afff792ca1189ce3410">mets::termination_criteria_chain</a> .</p>
<div class="fragment"><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    { </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;      <span class="keywordflow">if</span> (iterations_m &lt;= 0) </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;      </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;      --iterations_m;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="classmets_1_1termination__criteria__chain.html#ab9eb6f84a9ce3afff792ca1189ce3410">termination_criteria_chain::operator()</a>(fs); </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    }</div>
<div class="ttc" id="aclassmets_1_1termination__criteria__chain_html_ab9eb6f84a9ce3afff792ca1189ce3410"><div class="ttname"><a href="classmets_1_1termination__criteria__chain.html#ab9eb6f84a9ce3afff792ca1189ce3410">mets::termination_criteria_chain::operator()</a></div><div class="ttdeci">virtual bool operator()(const feasible_solution &amp;fs)</div><div class="ttdoc">Alternate function that decides if we shoud terminate the search process</div><div class="ttdef"><b>Definition:</b> termination-criteria.hh:247</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a5527220ab4b7c669f0c1cdec1f8dc0b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5527220ab4b7c669f0c1cdec1f8dc0b4">&#9670;&nbsp;</a></span>reset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void mets::iteration_termination_criteria::reset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reset the criterion to its initial state. </p>
<p>(chain of responsibility) </p>

<p>重载 <a class="el" href="classmets_1_1termination__criteria__chain.html#a7260e2e682a458d1bd9e2fb4ea6626e8">mets::termination_criteria_chain</a> .</p>
<div class="fragment"><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    { iterations_m = max_m; <a class="code" href="classmets_1_1termination__criteria__chain.html#a7260e2e682a458d1bd9e2fb4ea6626e8">termination_criteria_chain::reset</a>(); }</div>
<div class="ttc" id="aclassmets_1_1termination__criteria__chain_html_a7260e2e682a458d1bd9e2fb4ea6626e8"><div class="ttname"><a href="classmets_1_1termination__criteria__chain.html#a7260e2e682a458d1bd9e2fb4ea6626e8">mets::termination_criteria_chain::reset</a></div><div class="ttdeci">virtual void reset()</div><div class="ttdoc">Reset the criterion to its initial state.</div><div class="ttdef"><b>Definition:</b> termination-criteria.hh:257</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/3rdparty/metslib/<a class="el" href="termination-criteria_8hh_source.html">termination-criteria.hh</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>mets</b></li><li class="navelem"><a class="el" href="classmets_1_1iteration__termination__criteria.html">iteration_termination_criteria</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
